<?php
namespace Game\Controller;
use Common\Controller\CommonController;
class ConfigController extends CommonController{

    const AppID     =   'wx0dcb83c5892f258b';
    const AppSecret =   'aab64931415e6bb57986cb832518fc98';

    public function timestamp()
    {
        $appid      =   I('post.appid','','htmlspecialchars');
        $data       =   array();
        if (! empty($appid))
        {
            $data['appstatus']  =   1;
            $data['timestamp']  =   time();
            $this->returnData($data,$msg='OK',$code=200);
        }
    }

    public function get()
    {
        $appid      =   I('post.appid','','htmlspecialchars');
        $data       =   array();
        if (! empty($appid))
        {
            $data['friend_share']   =   0;
            $data['group_share']    =   1;
            $data['share_image']    =   'https://i.loli.net/2018/06/09/5b1b76dcc7c11.png';
            $data['share_title']    =   'TestShare';
            $data['status']         =   1;
            $this->returnData($data,$msg='OK',$code=200);
        }
    }

    /**
     * 服务器方面
     */
    public function server_busy()
    {

    }
}